<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>导师系统</title>
    <style>
        /* 页面整体样式 */
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            color: #333;
            margin: 0;
            padding: 0;
        }

        h1 {
            text-align: center;
            color: #6a5acd;
            margin-top: 20px;
        }

        .container {
            text-align: center;
            margin-top: 20px;
        }

        a {
            display: inline-block;
            margin: 10px;
            padding: 10px 20px;
            color: #6a5acd;
            text-decoration: none;
            border: 1px solid #6a5acd;
            border-radius: 5px;
        }

        a.disabled {
            color: #dcdcdc;
            border-color: #dcdcdc;
        }

        a:hover {
            background-color: #e6e6fa;
        }

        .message {
            font-size: 18px;
            color: #f44336; /* 红色提示 */
            font-weight: bold;
        }
    </style>
</head>
<body>

<div class="container">
    <h1>导师系统</h1>

    <%
        // 获取 session 中的 selectPhase 值
        Integer selectPhase = (Integer) session.getAttribute("selectPhase");

        // 如果 session 中没有 selectPhase 或者值为 null，则默认为 0
        if (selectPhase == null) {
            selectPhase = 0;
        }
    %>

    <%-- 判断 selectPhase 并显示相应的内容 --%>
    <%
        if (selectPhase == 0) {
    %>
    <p class="message">当前选择未开放。</p>
    <%
    } else if (selectPhase == 1) {
    %>
    <a href="mentorPreference?order=1">志愿一</a>
    <%
    } else if (selectPhase == 2) {
    %>
    <a href="mentorPreference?order=2">志愿二</a>
    <%
    } else if (selectPhase == 3) {
    %>
    <a href="mentorPreference?order=3">志愿三</a>
    <%
    } else if (selectPhase == 4) {
    %>
    <a href="mentorPreference/freeSelect">自由选择</a>
    <%
        }
    %>
</div>

</body>
</html>